package com.fsnip.dubbo.consume;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.fsnip.dubbo.demo.UserService;

public class Consumer {
    public static void main(String[] args) {
        //测试常规服务
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("consumer.xml");
        context.start();
        System.out.println("consumer start");
        UserService userService = context.getBean(UserService.class);
        System.out.println("consumer");
        System.err.println(userService.getUserNames());
//        context.close();
    }
}
